package com.yuhang.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuhang.entity.HyActivity;
import com.yuhang.entity.HyBillStream;
import com.yuhang.mapper.HyBillStreamMapper;
import com.yuhang.service.HyBillStreamService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yuhang
 * @since 2021-04-21
 */
@Service
public class HyBillStreamServiceImpl extends ServiceImpl<HyBillStreamMapper, HyBillStream> implements HyBillStreamService {

    @Autowired
    private HyBillStreamMapper hyBillStreamMapper;

    @Override
    public IPage<HyBillStream> selectByPage(int pageNum, int pageSize) {
        Page<HyBillStream> page = new Page(pageNum,pageSize);
        QueryWrapper<HyBillStream> qw = new QueryWrapper();
        IPage<HyBillStream> iPage = hyBillStreamMapper.selectPage(page,qw);
        return iPage;
    }
}
